package com.zero.mxshengadmin.modules.website.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zero.mxshengadmin.modules.website.entity.WebsiteAdvertiseEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by aicaikeji on 2019/4/3.
 */
@Mapper
public interface WebsiteAdvertiseDao extends BaseMapper<WebsiteAdvertiseEntity> {
    /**
     * 添加招聘
     * @param entity
     * @return
     */
    int addAdvertise(WebsiteAdvertiseEntity entity);

    /**
     * 查询招聘详情
     * @param entity
     * @return
     */
    WebsiteAdvertiseEntity findAdvertiseInfo(WebsiteAdvertiseEntity entity);

    /**
     * 更新招聘信息
     * @param entity
     * @return
     */
    int updateAdvertiseInfo(WebsiteAdvertiseEntity entity);

    /**
     * 删除招聘信息
     * @param entity
     * @return
     */
    int deleteAdvertise(WebsiteAdvertiseEntity entity);

    /**
     * 查询招聘数量
     * @param entity
     * @return
     */
    long findAdvertiseCount(WebsiteAdvertiseEntity entity);

    /**
     * 查询招聘列表
     * @param param
     * @return
     */
    List<WebsiteAdvertiseEntity> findAdvertiseList(Map<String,Object> param);
}
